<h1>Listing messages</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Content</th>
  </tr>

<% for message in @messages %>
  <tr>
    <td><%=h message.title %></td>
    <td><%=h message.content %></td>
    <td><%= link_to 'Show', [:admin, message] %></td>
    <td><%= link_to 'Edit', edit_admin_message_path(message) %></td>
    <td><%= link_to 'Destroy', [:admin, message], 
			:confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New message', new_admin_message_path %>
